package com.lz.clazz;

import java.util.Arrays;

/**
 * App..
 *
 * @author Lizhong
 * @date 2019/5/20
 */
public class App {
    public static void main(String[] args) {

        Class[] declaredClasses = Temp.class.getDeclaredClasses();
        // 返回里面声明的类
        System.out.println(Arrays.toString(declaredClasses));
        // 不是EnClosed返回null，是返回最外层
        System.out.println(Temp.class.getEnclosingClass());
        System.out.println(new Object(){}.getClass().getEnclosingClass());
    }
}
